package com.feib.stms.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.feib.stms.dao.DeliveryPaymentDao;
import com.feib.stms.model.DeliveryPayment;
import com.feib.stms.model.UploadFile;
import com.feib.stms.pagination.PaginatedList;
import com.feib.stms.service.DeliveryPaymentService;

@Service("deliveryPaymentService")
public class DeliveryPaymentServiceImpl extends BasePaymentFileContentServiceImpl<DeliveryPaymentDao, DeliveryPayment> implements DeliveryPaymentService 
{
	private static final long serialVersionUID = 775931860751573071L;


	/**
	 * 以使用者帳號與群組代號取得待審查交割款 資料
	 * @param userId
	 * @param groupNo
	 * @return
	 */
	public PaginatedList<DeliveryPayment> findUnCheckDeliveryPaymentByIdGroupNo(String userId, String groupNo)
	{
		return dao.findUnCheckDeliveryPaymentByIdGroupNo(userId, groupNo);
	}

	public Map<String, Object> findDeliveryPaymentByPk(Long deliveryPaymentPk) {
		
		return dao.findDeliveryPaymentByPk(deliveryPaymentPk);
	}

	public void updateCheckStatusByUploadFile(List<UploadFile> checkUploadFile) {

		dao.updateCheckStatusByUploadFile(checkUploadFile);
	}

	public PaginatedList<UploadFile> queryUploadFile(UploadFile qryUploadFile) {

		return dao.findUploadFile(qryUploadFile);
	}

	public PaginatedList<DeliveryPayment> findDeliveryPaymentByUploadFile(UploadFile qryUploadFile) {

		return dao.queryDeliveryPaymentByUploadFile(qryUploadFile);
	}

	@Resource(name="deliveryPaymentDao")
	@Override
	public void setDao(DeliveryPaymentDao dao) {
		this.dao = dao;	
	}




}
